import { Toast } from "vant"
import router from '@/router'

export default function checkLogin() {
    let { uid } = localStorage
    if (!uid) {
        Toast('请先登录')
        router.push('/login')
    }
}